<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div>我是html中的内容1</div>
		<button type="button" id="btn1">请求数据</button>
		<script type="text/javascript" src="https://libs.baidu.com/jquery/1.8.3/jquery.min.js"></script>
		<script type="text/javascript">
			$('#btn1').on('click',()=>{
				$.ajax({
					url: 'http://localhost:3000/qrcode/static',
					type: 'POST',
					data: {text:'https://www.baidu.com'},
					beforeSend: function(request) {
						// request.setRequestHeader("Content-Type", "application/json");
					},
					success(res) {
						console.log(res)
					}
				})
			})
		</script>
	</body>
</html>
